package com.zznj.xzjc.adapter.index;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;
import com.zznj.xzjc.bean.index.AjcxData;
import com.zznj.xzjc.bean.index.HdlxHfxxData;
import com.zznj.xzjc.utils.TimeUtils;

import java.util.HashMap;
import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/7
 */
public class HdxxHfxxAdapter extends BaseQuickAdapter<HdlxHfxxData, BaseViewHolder> {

    public HdxxHfxxAdapter(int layoutResId, @Nullable List<HdlxHfxxData> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HdlxHfxxData item) {
        helper.setText(R.id.user,item.getReplyUser()+"：")
                .setText(R.id.content,item.getContent())
                .setText(R.id.time,TimeUtils.getTime(item.getReplyTime(),"yyyy-MM-dd HH:mm:ss"));
    }
}
